package com.woniuxy.crm.entity;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
@Setter
@Getter
public class OrderItem {
    private Integer id;
     private Product product;
    private int num;
    private BigDecimal price;

    public OrderItem() {
    }

    public OrderItem(Integer id,Product product, BigDecimal price, int num) {
        this.product=product;
        this.id = id;
        this.price = price;
        this.num = num;
    }
    @Override
    public String toString(){
        return "id:"+id+"\t产品："+product+"\t价格："+price+"\t数量："+num;
    }
}
